package cn.wangqi.personal.service;

import cn.wangqi.personal.dao.BlogArticleDao;
import cn.wangqi.personal.domain.BlogArticle;
import cn.wangqi.personal.util.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by admin on 2017/10/17.
 */
@Service
public class BlogArticleService implements IBlogArticleService {

    @Resource
    private BlogArticleDao blogArticleDao;

    @Override
    public List<BlogArticle> listBlogArticle(Integer userId,Page page) {
        return blogArticleDao.listBlogArticle(userId,page);
    }

    @Override
    public List<BlogArticle> findRecomArticleByUserId(Integer userId) {
        return blogArticleDao.findRecomArticleByUserId(userId);
    }
}
